@charset "utf-8";

@import "color";

$FontSize: 0.14rem;

// mixins
@mixin dz($time:0.25s) {
    -webkit-transition: all $time ease-in-out;
    -moz-transition: all $time ease-in-out;
    -o-transition: all $time ease-in-out;
    transition: all $time ease-in-out;
}

body, ul, ol, dl, dd, h1, h2, h3, h4, h5, h6, pre, form, fieldset, legend, input, button, textarea, p, blockquote, table, th, td, menu {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed
}

ul, ol, menu {
    list-style: none
}

fieldset, img {
    border: none
}

img, object, select, input, textarea, button {
    vertical-align: middle
}

input, textarea, select, address, caption, cite, code, dfn, em, i, b, strong, small, th, var, abbr {
    font-size: 100%;
    font-style: normal
}

caption, th {
    text-align: left;
}

article, aside, footer, header, hgroup, nav, section, figure, figcaption {
    display: block;
}

code, kbd, pre, samp, tt {
    font-family: Consolas, "Courier New", Courier, monospace;
}

address, cite, dfn, em, var, i {
    font-style: normal;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
    content: "";
    content: none;
}

a {
    color: $LinkC;
    text-decoration: none;
    cursor: pointer;
    &:link, &:visited, &:active, &:focus {
        color: $LinkC;
    }
    &:hover {
        color: $HoverC;
        outline: none;
    }
    &, span, i, em, u, strong, b, p, img, ul, li, div, dd, dt, dl, ol, table, th, td, h1, h2, h3, h4, h5, h6, input, textarea, button, small, select {
        cursor: pointer;
        @include dz;
    }
}

abbr[title], acronym[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

html, body {
    font-size: $FontSize;
    color: $BaseC;
    line-height: 1;
    height: 100%;
    width: 100%;
}

body, button, input, select, textarea {
    font-family: sans-serif, '微软雅黑', 'Microsoft YaHei';
    font-size: $FontSize;
}

h1 {
    font-size: $FontSize + 0.1;
}

h2 {
    font-size: $FontSize + 0.08;
}

h3 {
    font-size: $FontSize + 0.06;
}

h4 {
    font-size: $FontSize + 0.04;
}

h5 {
    font-size: $FontSize + 0.02;
}

h6 {
    font-size: $FontSize;
}

hr {
    border: none;
    height: 1px;
    background: lighten($BaseC, 50%);
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.tl {
    text-align: left;
}

.tr {
    text-align: right;
}

.tc {
    text-align: center;
}

.cf:before, .cf:after {
    content: "";
    display: table;
}

.cf:after {
    clear: both;
}

.cf {
    zoom: 1;
}

.block {
    display: block;
}

.none {
    display: none
}

::-webkit-input-placeholder {
    color: $ph_color;
    font-weight: normal;
}

::-moz-placeholder {
    color: $ph_color;
    font-weight: normal;
}

:-ms-input-placeholder {
    color: $ph_color;
    font-weight: normal;
}

.clear {
    clear: both;
}

#app {
    height: 100%;
    width: 100%;
}

.el-dialog {
    .el-dialog__header {
        padding-top: 0.50rem;
        padding-left: 0.50rem;
        strong {
            font-size: 0.16rem;
            margin-right: 0.1rem;
        }
    }
    .el-dialog__body {
        padding: 0.10rem 0.50rem;
        .content {
            li {
                height: 0.70rem;
                input {
                    width: 100%;
                    border: none;
                    border-bottom: 1px solid $segment;
                    height: 0.40rem;
                    outline: none;
                }
                label{
                    position: relative;
                }
                .required-sign{
                    position: absolute;
                    right: -10px;
                    color: #f00;
                    top: 1px;
                }
            }
        }
    }
    .el-dialog__footer {
        text-align: center;
        padding: 0.10rem 0.50rem;
        padding-bottom: 0.50rem;
        .el-button {
            width: 100%;

        }
    }
}

.el-input--suffix .el-input__inner {
    background: transparent;
}

.el-tag {
    margin-right: 0.1rem;
}

.dialog-big-button {
    width: 200px;
}

.el-button {
    padding: 0.12rem 0.2rem;
    font-size: 0.14rem;
    &.el-button--mini {
        padding: 0.07rem 0.15rem;
    }
    &.el-button--small {
        padding: 0.09rem 0.15rem;
    }
    &.el-button--medium {
        padding: 0.1rem 0.2rem;
    }
}

.el-table {
    font-size: 0.14rem;
    .el-table__header-wrapper {
        border-width: 1px 0;
        border-color: $segment;
        th {
            padding: 0.06rem 0;
            &.is-leaf {
                text-align: center;
            }
            background: $bg_gray;
            .cell {
                color: $font_color;
            }
        }
    }
    .el-table__body-wrapper{
        td {
            text-align: center;
            padding: 0.06rem 0;
            &.red {
                .cell {
                    color: $strong_red;
                }
            }
            &.orange {
                .cell {
                    color: $orange;
                }
            }
            .el-button {
                padding: 0.02rem 0.06rem;
                span {
                    font-size: 0.14rem;
                }
            }
        }
    }
}

.el-dropdown-menu {
    padding-top: 0;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    .title {
        width: 100px;
        background: $black;
        color: $white;
        padding: 10px;
        font-size: 12px;
        line-height: 16px;
        display: inline-block;
    }
}

.el-dropdown-menu__item:not(.is-disabled):hover, .el-dropdown-menu__item:focus {
    background-color: $black;
    color: $white;
}

.el-pagination {
    text-align: center;
    margin-top: 0.2rem;
    &.is-background {
        .el-pager {
            li {
                color: $orange;
                min-width: 0.5rem;
                &.active {
                    background: $orange;
                }
            }
        }
    }
}

.statistics {
    .opt-line {
        .el-checkbox {
            .el-checkbox__input.is-checked .el-checkbox__inner {
                background-color: $strong_red;
                border-color: $strong_red;
            }
            .el-checkbox__input.is-checked + .el-checkbox__label {
                color: $strong_red;
            }
            .el-checkbox__label {
                font-size: 0.16rem;
            }
        }
    }
}
/*滚动条样式*/
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background: #E5E5E5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4B4B4B;
    border-radius: 4px;
}
